package ink.tiptop.service;

import ink.tiptop.dto.req.RestartServiceBean;
import ink.tiptop.persist.domain.entity.ZjfBaseServerInfoEntity;
import ink.tiptop.persist.domain.entity.ZjfServiceRemoteViewEntity;
import ink.tiptop.dto.req.remote.restart.RestartServiceListRequest;
import ink.tiptop.dto.req.remote.restart.RestartServiceRequest;
import ink.tiptop.common.domain.rsp.Response;

/**
 * @author ink.tiptop.zjf
 * @Title: boot-server-eureka
 * @Package ink.tiptop.service
 * @Description: 重启服务接口
 * @date 2020-08-02 22:48
 */
public interface RestartService {
    RestartServiceBean saveRestartServiceListToCache(ZjfServiceRemoteViewEntity viewEntity, ZjfBaseServerInfoEntity baseServerInfoEntity);

    void clearRestartList();

    Response list(RestartServiceListRequest request);

    Response restart(RestartServiceRequest request);
}
